package net.zoneland.zrdp.system.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import net.zoneland.zrdp.common.annotation.Excel;
import net.zoneland.zrdp.common.core.domain.BaseEntity;

/**
 * 统一通知对象 zrdp_sys_notify_log
 *
 * @author zonevue
 * @date 2023-11-13
 */
public class SysNotifyLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String parameters;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime startTime;

    /** 耗时 */
    @Excel(name = "耗时")
    private Long duration;

    /** 状态码 */
    @Excel(name = "状态码")
    private Long statusCode;

    /** 返回结果 */
    @Excel(name = "返回结果")
    private String resultText;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setParameters(String parameters) {
        this.parameters = parameters;
    }

    public String getParameters() {
        return parameters;
    }
    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }
    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public Long getDuration() {
        return duration;
    }
    public void setStatusCode(Long statusCode) {
        this.statusCode = statusCode;
    }

    public Long getStatusCode() {
        return statusCode;
    }
    public void setResultText(String resultText) {
        this.resultText = resultText;
    }

    public String getResultText() {
        return resultText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parameters", getParameters())
            .append("startTime", getStartTime())
            .append("duration", getDuration())
            .append("statusCode", getStatusCode())
            .append("resultText", getResultText())
            .toString();
    }
}
